var formElement = document.getElementById('formio');
var submission={};
var formdata = $('#form').val();
var onForm = function(form) {
	form.on('change', function() {
		submission=form.submission;
	});
};

Formio.createForm(formElement, JSON.parse(formdata)).then(onForm);
